{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">
        {template "header.html"}
        <div class="page-content">
            <div class="container">
                <ul class="page-breadcrumb breadcrumb">
                    <li>
                        <a href="{SITE_URL}">首页</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    {if !IS_SHARE}
                    <li>
                        <a href="{MODULE_URL}">{MODULE_NAME}</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    {/if}
                    {dr_catpos($catid, '', true, '<li><a href="{url}">{name}</a><i class="fa fa-circle"></i></li>')}
                    <li>
                        <span>搜索：{$keyword}</span>
                    </li>
                </ul>

                <div class="page-content-inner">
                    <div class="search-page search-content-2">

                        <div class="portlet light ">
                            <p style="line-height:30px">
                                <strong>简历分类：</strong>
                                <a class="label {if !$catid || $cat.child}label-success{else}label-default{/if}" href="{dr_search_url($params, 'catid', NULL)}">不限</a>
                                <!--调用栏目分类，这种用法只能用于模块列表与搜索页面-->
                                {loop $related $t}
                                <a class="label {if $t.id==$catid}label-success{else}label-default{/if}" href="{dr_search_url($params, 'catid', $t.id)}">{$t.name}</a>
                                {/loop}
                            </p>

                            <!--求职行业-->
                            <p style="line-height:30px">
                                <strong>求职行业：</strong>
                                <a class="label {if !$params.zhiweileibie || dr_cat_value('zhaopin', $params.zhiweileibie, 'child')}label-success{else}label-default{/if}" href="{dr_search_url($params, 'zhiweileibie', NULL)}">不限</a>

                                {if dr_cat_value('zhaopin', $params.zhiweileibie, 'child')}
                                {php $zhiweileibie = $params.zhiweileibie;}
                                {else}
                                {php $zhiweileibie = dr_cat_value('zhaopin', $params.zhiweileibie, 'pid');}
                                {/if}
                                {list action=category module=zhaopin pid=$zhiweileibie}
                                <a class="label {if $t.id==$params.zhiweileibie}label-success{else}label-default{/if}" href="{dr_search_url($params, 'zhiweileibie', $t.id)}">{$t.name}</a>
                                {/list}
                            </p>

                            <!--工作地区-->
                            <p style="line-height:30px">
                                <strong>工作地区：</strong>
                                <a class="label {if !$params.gzdd || dr_linkage('address', $params.gzdd, 0, 'child')}label-success{else}label-default{/if}" href="{dr_search_url($params, 'gzdd', NULL)}">不限</a>

                                <!--调用联动菜单address，pid为动态获取的地区id-->
                                {list action=linkage code=address pid=$params.gzdd}
                                <a class="label {if $t.id==$params.gzdd}label-success{else}label-default{/if}" href="{dr_search_url($params, 'gzdd', $t.id)}">{$t.name}</a>
                                {/list}
                            </p>

                            <!--最高学历-->
                            <p style="line-height:30px">
                                <strong>最高学历：</strong>
                                {php $field = dr_field_options('zuigaoxueli');}
                                <a class="label {if !$params.zuigaoxueli}label-success{else}label-default{/if}" href="{dr_search_url($params, 'zuigaoxueli', NULL)}">不限</a>
                                {loop $field $i $t}
                                <a class="label {if $i==$params.zuigaoxueli}label-success{else}label-default{/if}" href="{dr_search_url($params, 'zuigaoxueli', $i)}">{$t}</a>
                                {/loop}
                            </p>

                            <!--性别-->
                            <p style="line-height:30px">
                                <strong>性别：</strong>
                                {php $field = dr_field_options('xingbie');}
                                <a class="label {if !$params.xingbie}label-success{else}label-default{/if}" href="{dr_search_url($params, 'xingbie', NULL)}">不限</a>
                                {loop $field $i $t}
                                <a class="label {if $i==$params.xingbie}label-success{else}label-default{/if}" href="{dr_search_url($params, 'xingbie', $i)}">{$t}</a>
                                {/loop}
                            </p>

                            <div>
                                <div class="input-group">
                                    <input type="text" class="form-control" onkeypress="if(event.keyCode==13) {searchByClass();return false;}" name='keyword' value='{$keyword}' id='dr_search_keyword'>
                                    <span class="input-group-btn">
                                        <button class="btn blue" onclick="searchByClass()" type="button">搜索</button>
                                    </span>
                                </div>
                                <script type="text/javascript">
                                    function searchByClass(){
                                        var url="{dr_search_url($params, 'keyword', 'dayruicom')}";
                                        var value=$("#dr_search_keyword").val();
                                        if (value) {
                                            location.href=url.replace('dayruicom', value);
                                        } else {
                                            dr_tips("输入关键字");
                                        }
                                    }
                                </script>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                <div class="search-container ">
                                    <ul class="search-container">
                                        {if $searchid}
                                        {list action=search module=$dirname id=$searchid total=$sototal catid=$catid page=1 pagesize=10 urlrule=$urlrule}
                                        <li class="search-item clearfix">
                                            <div class="search-content text-left">
                                                <h4 class="search-title">
                                                    <a title="{$t.title}" href="{$t.url}">{dr_keyword_highlight($t.title, $keyword)}</a>
                                                </h4>
                                                <p class="search-desc">{dr_keyword_highlight($t.description, $keyword)}</p>
                                                <div class="search-post-foot">
                                                    <ul class="search-post-tags">
                                                        {php $kw=@explode(',', $t.keywords);}
                                                        {loop $kw $a}
                                                        {if $a}
                                                        <li class="uppercase">
                                                            <a href="{dr_tag_url(MOD_DIR, $a)}" target="_blank">{$a}</a>
                                                        </li>
                                                        {/if}
                                                        {/loop}
                                                    </ul>
                                                    <div class="search-post-meta">
                                                        <i class="icon-calendar font-blue"></i>
                                                        <a href="javascript:;">{$t.updatetime}</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-fire font-blue"></i>
                                                        <a href="javascript:;">{$t.hits}次</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-bubble font-blue"></i>
                                                        <a href="javascript:;">{$t.comments}</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </li>
                                        {/list}
                                        {if !$total}
                                        <div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>
                                        {/if}
                                        {else}
                                        <div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>
                                        {/if}
                                    </ul>
                                    <div class="search-pagination">
                                        <ul class="pagination">
                                            {$pages}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
</div>



{template "footer.html", "/"}